# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=webrtc-audio-processing-1
pkgver=1.3
pkgrel=0
pkgdesc="AudioProcessing module from the WebRTC project"
url="https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/"
# unsupported in the code
arch="all !s390x !ppc64le"
license="custom"
makedepends="
	abseil-cpp-dev
	meson
	cmake
	libtool
	linux-headers
	"
subpackages="$pkgname-dev"
source="
	https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/archive/v$pkgver/webrtc-audio-processing-v$pkgver.tar.gz
	0001-rtc_base-Include-stdint.h-to-fix-build-failures.patch
	"
options="!check" # No tests
builddir="$srcdir/webrtc-audio-processing-v$pkgver"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}

sha512sums="
addd6feb5f46f958786b0befadbafe1247737a5cd002a631d9fb2c85fd121959287079148a73f3a20f2b594b288cd5697ab28f4063a4d421fbee9ed2f1ea2117  webrtc-audio-processing-v1.3.tar.gz
a0150577f1508cbc115d661b9cb74dac046afd8baecb3ca37b47601ccfe81693eb373262711467fc411970404717c9982319dfb70904d0fe30d46ff8de443210  0001-rtc_base-Include-stdint.h-to-fix-build-failures.patch
"
